home *** CD-ROM | disk | FTP | other *** search
- on askForeignQuestion sndLst
- global gLangSelect,gWhichQuest,gLangName,gQuestion,gAnswer,gCat, gLangDirect,gFileDelimiter,gSndPath,gAnsSndLst,gCatTitle
- -- if gCatTitle = "allw" or gCatTitle = "all" then
- -- findgCat
- -- end if
- set gCat = "tphr"
- set gWhichQuest = 7
- set the itemDelimiter to "*"
- set aWord = item 3 of line gWhichQuest of field (gLangSelect&&gCat) of castLib (gLangSelect&"Cst")
- if gCat = "tphr" and gWhichQuest = 109 then
- set gAnswer = ("How do you say 'notebook' in "&gLangName&"?")
- else if gCat = "tphr" and gWhichQuest = 7 then
- set gAnswer = ("My "&gLangName&" is not very good.")
- else
- set gAnswer = item 2 of line gWhichQuest of field ("e "&gCat)
- end if
- if gLangSelect = "f" then
- set gQuestion = ("Comment dit-on "&line 1 of field "quote"&aWord&line 1 of field "quote"&" en anglais?")
- else if gLangSelect = "s" then
- set gQuestion = ("¿Cómo se dice "&line 1 of field "quote"&aWord&line 1 of field "quote"&" en inglés?")
- else if gLangSelect = "I" then
- set gQuestion = ("Cos'è l'inglese per "&line 1 of field "quote"&aWord&line 1 of field "quote"&"?")
- else if gLangSelect = "g" then
- set gQuestion = ("Was ist "&line 1 of field "quote"&aWord&line 1 of field "quote"&" auf englisch?")
- end if
- set engPath = (gSndPath&gLangSelect&gFileDelimiter)
- add(sndLst,(engPath&gLangSelect&"quest.aif"))
- add(sndLst,(engPath&gCat&gFileDelimiter&gCat&gWhichQuest&".aif"))
- if gLangSelect = "g" or gLangSelect = "f" or gLangSelect = "s" then
- add(sndLst,(engPath&gLangSelect&"quest2.aif"))
- end if
- add(gAnsSndLst,(gSndPath&"e"&gFileDelimiter&gCat&gFileDelimiter&gCat&gWhichQuest&".aif"))
- return sndLst
- end askForeignQuestion